/**
 * Created by sina on 8/15/2017.
 */
$(document).ready(function() {

	$(".ti-item").click(function() {
		$(".ti-item").removeClass("active");
		$(this).addClass("active");
	})

	/*顺序练题效果*/
	$('.shunxu').on('click', function() {
		window.location.href = '../subject1/demo.html?select_type=shunxu'
	})
	$('.suiji').on('click', function() {
		window.location.href = '../subject1/demo.html?select_type=suiji'
	})
	$('.my_collection').on('click', function() {
		window.location.href = '../subject1/demo.html?select_type=showColl' //收藏题
	})
	$('.wrong').on('click', function() {
		window.location.href = '../subject1/demo.html?select_type=wrong' //错题
	})
	$('.lianti-point-circle').on('click', function() {
		window.location.href = "../subject1/test.html";
	})
	$('#get_wrong').on('click', function() {
		window.location.href = "../subject1/demo.html?select_type=easy_wrong";
	})
	$('#continue').on('click', function() {
		window.location.href = "../subject1/demo.html?select_type=continue";
	})

	//科目4点击执行效果
	$('#subject_four').click(function() {
		$('.shunxu').on('click', function() {
			window.location.href = '../subject4/try.html?select_type=shunxu'
		})
		$('.suiji').on('click', function() {
			window.location.href = '../subject4/try.html?select_type=suiji'
		})
		$('.my_collection').on('click', function() {
			window.location.href = '../subject4/try.html?select_type=showColl' //收藏题
		})
		$('.wrong').on('click', function() {
			window.location.href = '../subject4/try.html?select_type=wrong' //错题
		})
		$('.lianti-point-circle').on('click', function() {
			window.location.href = "../subject4/test_four.html";
		})
		$('#get_wrong').on('click', function() {
			window.location.href = "../subject4/try.html?select_type=easy_wrong";
		})
		$('#continue').on('click', function() {
			window.location.href = "../subject4/try.html?select_type=continue";
		})
	})

}); /*end $function*/

/*暂未开放事件*/
function tip() {
	layer.msg('暂未开放');
}

// 动态获取html根字体
setFontSize(640);

/*监听手机返回按键并且带确认按钮 引用public_js公共文件 public*/
confirm_return();


